package com.xiaopo.flying.stickerview;

import com.xiaopo.flying.sticker.StickerIconEvent;
import com.xiaopo.flying.sticker.StickerView;
import ohos.agp.window.dialog.ToastDialog;
import ohos.multimodalinput.event.TouchEvent;

/**
 * @author wupanjie
 * @see StickerIconEvent
 */

public class HelloIconEvent implements StickerIconEvent {
    @Override
    public void onActionDown(StickerView stickerView, TouchEvent event) {

    }

    @Override
    public void onActionMove(StickerView stickerView, TouchEvent event) {

    }

    @Override
    public void onActionUp(StickerView stickerView, TouchEvent event) {
        new ToastDialog(stickerView.getContext()).setOffset(0, 200).setText("Hello World!").show();
    }
}
